<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js"></script>
</head>
<body>
 <input type="file" id="file" />
  <script type="text/javascript">
    var client = new OSS.Wrapper({
      region: 'oss-cn-hangzhou',
      accessKeyId: 'LTAIYchMMVtRt8Uo',
      accessKeySecret: 'MlhrACV89K8SQrvUvjQaufozenMtMJ',
      bucket: 'hippohuadong'
    });
    document.getElementById('file').addEventListener('change', function (e) {
      var file = e.target.files[0];
      var storeAs = 'vod';
	  console.log(storeAs)
     // console.log(file.name + ' => ' + storeAs);
      client.multipartUpload(storeAs, file).then(function (result) {
        console.log(result);
      }).catch(function (err) {
        console.log(err);
      });
    });
  </script>
</body>
</html>
